import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class as {
    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        LocalDateTime of = LocalDateTime.of(2025, 11, 11, 8, 5, 30);
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        String nowFormatted = formatter.format(now);
        String ofFormatted = formatter.format(of);
        System.out.println("当前日期时间：" + nowFormatted);
        System.out.println("指定日期时间：" + ofFormatted);
    }
}